package com.ordobill.webapp.beans;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Vector;

import com.ordobill.webapp.common.CommonFields;

/**
 * 모델링관련 생성된 클래스입니다.
 * 
 * @author Choi Jin Wook(A.K.A Brian Choi @ Ordobill Office) / choijinwook84@gmail.com
 *
 */
@SuppressWarnings("serial")
public class Modeling extends CommonFields{

	private int    moUid       = 0;
	private int    moProject   = 0;
	private String moBr        = "";
	private String moSelf      = "";
	private String moPre       = "";
	private String moDepth     = "";
	private int    moOrder     = 0;
	private String moType      = "";
	private String moImg       = "";
	private String moPosx      = "";
	private String moPosy      = "";
	private String moName      = "";
	private int    moPuEa      = 0;
	private String moPuName    = "";
	private String moPuValue   = "";
	private int    moPuConnect = 0;
	private int    moPbUid     = 0;
	private int    moPuOrder   = 0;
	private String moIn        = "";
	private String moOut       = "";
	private String moTree      = "";
	private String moTagId     = "";
	
	/**
	 * Bean에만 있는 필드입니다.
	 * true:정상 false:망가짐
	 */
	private boolean moEquipStat = true;
	
	private ArrayList<Figures> figuresList;
	
	private Vector<Figures> figuresVector;
	
	public  Modeling(String prdUid){
		setMoProject(Integer.parseInt(prdUid));
	}
	
	public Modeling(Project project){
	    this.setMoProject(project.getProUid());
	}
	
	public Modeling(int moProject){
	    this.setMoProject(moProject);
	}
	
	public Modeling(){
	}
	
	public int getMoUid() {
		return moUid;
	}
	public void setMoUid(int moUid) {
		this.moUid = moUid;
	}
	public int getMoProject() {
		return moProject;
	}
	public void setMoProject(int moProject) {
		this.moProject = moProject;
	}
	public String getMoBr() {
		return moBr;
	}
	public void setMoBr(String moBr) {
		this.moBr = moBr;
	}
	public String getMoSelf() {
		return moSelf;
	}
	public void setMoSelf(String moSelf) {
		this.moSelf = moSelf;
	}
	public String getMoPre() {
		return moPre;
	}
	public void setMoPre(String moPre) {
		this.moPre = moPre;
	}
	public String getMoDepth() {
		return moDepth;
	}
	public void setMoDepth(String moDepth) {
		this.moDepth = moDepth;
	}
	public int getMoOrder() {
		return moOrder;
	}
	public void setMoOrder(int moOrder) {
		this.moOrder = moOrder;
	}
	public String getMoType() {
		return moType;
	}
	public void setMoType(String moType) {
		this.moType = moType;
	}
	public String getMoImg() {
		return moImg;
	}
	public void setMoImg(String moImg) {
		this.moImg = moImg;
	}
	public String getMoPosx() {
		return moPosx;
	}
	public void setMoPosx(String moPosx) {
		this.moPosx = moPosx;
	}
	public String getMoPosy() {
		return moPosy;
	}
	public void setMoPosy(String moPosy) {
		this.moPosy = moPosy;
	}
	public String getMoName() {
		return moName;
	}
	public void setMoName(String moName) {
		this.moName = moName;
	}
	public int getMoPuEa() {
		return moPuEa;
	}
	public void setMoPuEa(int moPuEa) {
		this.moPuEa = moPuEa;
	}
	public String getMoPuName() {
		return moPuName;
	}
	public void setMoPuName(String moPuName) {
		this.moPuName = moPuName;
	}
	public String getMoPuValue() {
		return moPuValue;
	}
	public void setMoPuValue(String moPuValue) {
		this.moPuValue = moPuValue;
	}
	/**
     * @return the moPuConnect
     */
    public int getMoPuConnect() {
        return moPuConnect;
    }

    /**
     * @param moPuConnect the moPuConnect to set
     */
    public void setMoPuConnect(int moPuConnect) {
        this.moPuConnect = moPuConnect;
    }

    /**
     * @return the moPbUid
     */
    public int getMoPbUid() {
        return moPbUid;
    }

    /**
     * @param moPbUid the moPbUid to set
     */
    public void setMoPbUid(int moPbUid) {
        this.moPbUid = moPbUid;
    }

    /**
     * @param figuresList the figuresList to set
     */
    public void setFiguresList(ArrayList<Figures> figuresList) {
        this.figuresList = figuresList;
    }

    public int getMoPuOrder() {
		return moPuOrder;
	}
	public void setMoPuOrder(int moPuOrder) {
		this.moPuOrder = moPuOrder;
	}
	public String getMoIn() {
		return moIn;
	}
	public void setMoIn(String moIn) {
		this.moIn = moIn;
	}
	public String getMoOut() {
		return moOut;
	}
	public void setMoOut(String moOut) {
		this.moOut = moOut;
	}

    public String getMoTree() {
        return moTree;
    }

    public void setMoTree(String moTree) {
        this.moTree = moTree;
    }

    public String getMoTagId() {
        return moTagId;
    }

    public void setMoTagId(String moTagId) {
        this.moTagId = moTagId;
    }

    public boolean isMoEquipStat() {
        return moEquipStat;
    }

    public void setMoEquipStat(boolean moEquipStat) {
        this.moEquipStat = moEquipStat;
    }

    public ArrayList<Figures> getFiguresList() {
        return figuresList;
    }

    public void setFiguresList(Figures[] figuresList) {
        this.figuresList = new ArrayList<Figures>(Arrays.asList(figuresList));
        Vector<Figures> figuresVec = new Vector<Figures>(this.figuresList.size());
        figuresVec.addAll(this.figuresList);
        this.setFiguresVector(figuresVec);
    }

    public Vector<Figures> getFiguresVector() {
        return figuresVector;
    }

    public void setFiguresVector(Vector<Figures> figuresVector) {
        this.figuresVector = figuresVector;
    }

}
